﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BaseData;
using BaseLib.Helper;
namespace BaseUtility
{
    public class GetAccType
    {
        public Enums.AccType Parse(string path)
        {
            return path.IsNullOrWhiteSpace()
                ? Enums.AccType.Unknow
                : (path.StartWith("/staff/")
                    ? Enums.AccType.Staff
                    : (path.StartWith("/super/")
                        ? Enums.AccType.Super
                        : (path.StartWith("/user/")
                            ? Enums.AccType.User
                            : (path.StartWith("/member/")
                                ? Enums.AccType.Member
                                : (path.StartWith("/biz/")
                                    ? Enums.AccType.Biz
                                    : (path.StartWith("/vip/")
                                    ? Enums.AccType.Vip
                                    : Enums.AccType.Unknow))))));
        }
    }
}
